msg_tool\scripts\artemis\archive/
mod.rs

1//! Artemis Engine Archive
2pub mod pf2;
3pub mod pfs;
4use crate::types::ScriptType;
5
6fn detect_script_type(buf: &[u8], buf_len: usize, filename: &str) -> Option<ScriptType> {
7    if buf_len >= 5 && buf.starts_with(b"ASB\0\0") {
8        return Some(ScriptType::ArtemisAsb);
9    }
10    if super::ast::is_this_format(filename, buf, buf_len) {
11        return Some(ScriptType::Artemis);
12    }
13    None
14}